﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataBase
{
    public class DBPlayerInfo
    {
        private int id;

        public int ID
        {
            get { return id; }
            set { id = value; }
        }
        private String username;

        public String Username
        {
            get { return username; }
            set { username = value; }
        }
        private String password;

        public String Password
        {
            get { return password; }
            set { password = value; }
        }
        private String email;

        public String Email
        {
            get { return email; }
            set { email = value; }
        }

        private float stats;

        public float Stats
        {
            get { return stats; }
            set { stats = value; }
        }

        private int gamesPlayed;

        public int GamesPlayed
        {
            get { return gamesPlayed; }
            set { gamesPlayed = value; }
        }

        private int gamesWon;

        public int GamesWon
        {
            get { return gamesWon; }
            set { gamesWon = value; }
        }

        private int score;

        public int Score
        {
            get { return score; }
            set { score = value; }
        }


        public DBPlayerInfo()
        {
            id = -1;
            Username = "Guest";
            Password = "";
            Email = "Example@Something.COM";
            this.Stats = 0.5f;
            this.gamesPlayed = 1;
            this.GamesWon = -1;
            this.score = 1;
        }

        public DBPlayerInfo(int ID, String username, String password, String email, float stats, int gamesPlayed, int gamesWon, int score)
        {
            this.ID = ID;
            this.Username = username;
            this.Password = password;
            this.Email = email;
            this.Stats = stats;
            this.GamesPlayed = gamesPlayed;
            this.GamesWon = gamesWon;
            this.Score = score;
        }

    }
}
